home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
015a
/
isshare.zip
/
ISSHARE.SUB
< prev
Wrap
Text File
|
1991-03-01
|
3KB
|
48 lines
':::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
':::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
'::: :::
'::: PROGRAM: ISSHARE.SUB :::
'::: AUTHOR: Mike Shaffer :::
'::: DATE: Feb 2, 1991 :::
'::: VERSION: 2.0 :::
'::: PURPOSE: Determines if SHARE is loaded. :::
'::: REVISIONS: :::
'::: :::
'::: :::
'::: :::
'::: NOTES: This SUB assumes you're using PDQ from :::
'::: Crescent Software. If not (shame on you!) :::
'::: than you can modify the interrupt call to :::
'::: use INT86 as provided with QuickBASIC. :::
'::: :::
'::: :::
':::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
':::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
' '
' '
sub ISSHARE(status%) static
' '
dim regs as regtype ' Create type to hold registers
' ' NOTE: regtype is defined in
' ' the PDQ declarations
' ' include. If you're not
' ' using PDQ, you'll
' ' probably want to use
' ' INT86 as provided by
' ' QuickBASIC, in which
' ' case the interrupt
' ' control structure will
' ' be an integer array.
' ' (see the QB docs)
' '
' '
regs.ax = &h1000 ' AH=&h10, AL=&h00
' ' Function to test SHARE
interrupt &h2F,regs ' So we get it! (returned in AL)
Status% = (regs.ax AND &hFF) = &hFF '
' '
' '
end sub